from app import create_app
from flask_migrate import Migrate
# from app.databases import db_main, db_analytics
from app.databases import db_main
app = create_app()

# 为不同数据库配置迁移
migrate_main = Migrate(app, db_main, directory='migrations/main')
# migrate_analytics = Migrate(app, db_analytics, directory='migrations/analytics')

if __name__ == '__main__':
    app.run(debug=True)